import request from '@/utils/request'

// 获取所有用户
export function getuserlist(data) {
  return request({
    url: '/user/list/all',
    method: 'post',
    data: data,
  })
}
// 修改个人信息
export function changeusermessage(data) {
  return request({
    url: '/user/update',
    method: 'post',
    data: data,
  })
}

// 删除角色
export function Del(id) {
  return request({
    url: '/user/delete',
    method: 'get',
    params: {
      id: id,
    },
  })
}
// 获取所有角色
export function getalluser(data) {
  return request({
    url: '/role/list/all',
    method: 'post',
    data: data,
  })
}
// 新增用户
export function adduser(data) {
  return request({
    url: '/user/increase',
    method: 'post',
    data: data,
  })
}
// 角色编辑
export function setupuser(data) {
  return request({
    url: '/role/add',
    method: 'post',
    data: data,
  })
}
// 获取职能部门角色人员
export function RolePersonnel(data) {
  return request({
    url: '/role/department/get',
    method: 'post',
    data: data,
  })
}
// 公告分页查询所有
export function getnotice(current, limit, title, status) {
  return request({
    url: '/notice/noticeList',
    method: 'get',
    params: {
      current: current,
      limit: limit,
      title: title,
      status: status,
    },
  })
}
// 获取省市区域数据
export function getCidadeList(data) {
  return request({
    url: '/address/province/get/list',
    method: 'post',
    data: data,
  })
}
